package by.grsu.hdm.devices;

import by.grsu.hdm.model.HomeDevice;

public class WashingMachine extends HomeDevice {
	private int powerStatus; //Truing to include status of this device
	
	protected WashingMachine() {
		defaultConfiguration();
	}
	
	public WashingMachine(String id) {
		super(id);
		this.powerStatus = 0;
	}

	@Override
	protected void beforeTurningOff() {
		System.out.println(getDeviceId() + " is preparing for shutdown");
		this.powerStatus = 0;
	}
	@Override
	protected void afterTurningOn() {
		this.powerStatus = 1;
	}
	public int getpowerStatus (){    //here we are getting status of media center
		return this.powerStatus;
		
	}
}
